<!--
 * @Author: MarioGo
 * @Date: 2021-12-17 00:18:39
 * @LastEditTime: 2021-12-17 16:50:48
 * @LastEditors: MarioGo
 * @Description: 文件描述
 * @FilePath: /yidiandian/src/App.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
  <router-view></router-view>
  <Loader v-if="isLoading" text="拼命加载中" background="rgba(0, 0, 0, 0.8)"></Loader>
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import Loader from '@/components/Loader/index.vue'
import { useGlobalStore } from '@/store'
//全局动态加载动画显示或隐藏
const globalStore = useGlobalStore()
const isLoading = computed(() => globalStore.isLoading)
</script>

<style lang="less" scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  background-color: #c1c1c1;
  margin-top: 60px;
}
</style>
